package com.magical.service;

import com.magical.entity.User;

import java.util.List;

public interface UserService {

    User findByEmail(String email);

    int addUser(String name, String email, String password);

    List<User> selectAllUserMessage();

    int delete(int id);

    User find(int id);

    int update(int id,String email,int authority,int grade);

    //内存使用情况
    int usedSpace(int userId,int usedspace);

    int maxSpace(int gradeId);
}